<?php
namespace app\home\controller;

use app\common\cache\CacheData;

class Main extends Base
{
    public function index()
    {
        // 页面信息
        $pageData = ['title'=>'前台首页'];

        $this->assign('pageData',$pageData);
        return view();
    }

    public function home()
    {
        // 页面信息
        $pageData = ['title'=>'用户首页'];

        $this->assign('pageData',$pageData);
        return view();
    }

    public function refreshCache(){
    	$modeleArr = ['Option','Level','Coin','CoinConfig','LevelCoinConfig'];
        foreach($modeleArr as $model):
            $cache = CacheData::getInstance($model);
            $cache -> updateCache();
        endforeach;
    }
}
